    <?php echo $html->script(array('jquery')); ?>
	<div class="content-box">
	<div class="box-body">
	<div class="box-header clear">
	<ul class="tabs clear">
		<li><?php echo $html->link("Thêm", array('action'=>'add')); ?></li>
	</ul>
	
	<h2>Quản lý danh mục bài viết</h2>
	</div>
	
	<div class="box-wrap clear"><!-- TABLE -->
	<div id="table">
	<?php echo $form->create('Category') ?>
	<table class="style1">
		<thead>
			<tr>
				<th><input type="checkbox" class="checkbox select-all" /></th>
				<th>Mã số</th>
				<th>Tên danh mục</th>
				<th>Kích hoạt</th>
				<th>Quản lý</th>
			</tr>
		</thead>
	
		<tbody>
			<?php foreach ($categories as $category) {
			?>
			<tr>
				
				<td><?php echo $form->checkbox('SelectedCategories.'.$category['Category']['id'], array('value' => $category['Category']['id'])); ?></td>
				<td><?php echo $category['Category']['id'] ?></td>
				<td><?php echo $category['Category']['category'] ?></td>
				<td><?php if($category['Category']['active']) echo 'Có'; else echo 'Không' ?></td>
				<td>
					<?php echo $html->image("admin/ico_edit_16.png", array(
						"alt" => "Sửa",
						'url' => array('action' => 'edit', $category['Category']['id'])
						)); ?>
					<?php echo $html->image("admin/ico_delete_16.png", array(
						"alt" => "Xóa",
						'url' => array('action' => 'delete', $category['Category']['id']),
						'onclick'=>'return confirm(\'Bạn có chắc muốn xóa?\')'
						)); ?>
				</td>
				
			</tr>
			<?php } ?>
		</tbody>
	</table>
	
	<div class="tab-footer clear">
	<div class="fl"><select name="dropdown" class="fl-space" onchange="this.form.action=this.value";>
		<option value="">Thao tác</option>
		<option value="delMulti">Xóa</option>
	</select> <input type="submit" value="Đồng ý" id="submit2"
		class="button fl-space" /></div>
	
	
	</div>
	<?php echo $form->end(); ?>
	</div>
	<!-- /#table --></div>
	<!-- end of box-wrap --></div>
	</div>
	<!-- end of content-box -->